<template>
	<public-view navType="other" navTitle="加油记录">
		<view class="content flex f-d-c a-i-c">
			<view class="log-list">
				<block v-for="(item, index) in list" :key="index">
					<log-box :item="item"></log-box>
				</block>
			</view>
			<view class="color-878787 f-s-24">
				没有查询到更多数据
			</view>
		</view>
	</public-view>
	
</template>

<script>
	import lobBox from "@/components/myComponents/logBox.vue"
	export default {
		components:{
			"log-box":lobBox
		},
		data() {
			return {
				list:[]
			};
		},
		onLoad() {
			this.getUserLog()
		},
		methods:{
			getUserLog(){
				let that = this
				that.util.postRequest({
					url:"v1/user/gasoline_order",
					data:{
						
					}
				}).then(res=>{
					console.log(res)
					that.list = res.data.data
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.mar-t-83{
		margin-top: 86upx;
	}
	.log-list{
		width: 100%;
		padding: 0 40upx;
	}
	.content{
		width: 750upx;
		padding-top: 34upx;
	}

</style>
